# https://github.com/jbeder/yaml-cpp/releases/tag/0.8.0
# vs2017 max version 3.12
cmake_minimum_required(VERSION 3.12)
project(IntervalConvertCppWrapper)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/ThirdExtend/IntervalConvert010)

add_library(${PROJECT_NAME} STATIC IntervalConvert.cpp)

include(GNUInstallDirs)
set_target_properties(${PROJECT_NAME}
        PROPERTIES
            PUBLIC_HEADER IntervalConvert.h
            LINKER_LANGUAGE CXX
)

install(
        TARGETS ${PROJECT_NAME}
        PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
)
